<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0">
    <title>getQR</title>
    <script src="../../lib/axios-0.18.0.js"></script>
    <script src="../../http/request.js"></script>
</head>

<body>
    <div style="width: 100%;height: 100vh;display: flex;align-items: center;">
        <img style="width: 100%;"
            src=""
            alt="">
    </div>
</body>
<script>
    (async function(){
        const img = document.querySelector('img')
        const result = await axios.get('/user/coupon/getImg')
        console.log(result)
        img.src = 'data:image/png;base64,' + result.data
    })()
</script>

</html>